<!DOCTYPE html>
<shiro:isLoggedIn>
<html>
	<head>
		<meta name="layout" content="main"/>
		<title>Broker</title>
	</head>
	<body>
			<div id="page-body" role="main">
				<br />
				<p>${message(code: 'default.string.apresentacao') }</p>
				<br />
				<%--<div id="controller-list" role="navigation">
					<ul>
						<g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }">
							<g:if test="${!c.naturalName.replaceAll(' Controller', '').equals('Dbdoc') && !c.naturalName.replaceAll(' Controller', '').equals('Auth')}">
								<li class="controller"><g:link controller="${c.logicalPropertyName}">${c.naturalName.replaceAll(' Controller', '')}</g:link></li>
							</g:if>
						</g:each>
					</ul>
				</div>--%>
			</div>
	</body>
</html>
</shiro:isLoggedIn>
<shiro:isNotLoggedIn>
<html>
	<head>
		<title>Broker</title>
		<style type="text/css">
			body {
				background: #fff;
			}
			
			#top {
				background: none repeat scroll 0 0 #9AC995;
			    height: 12px;
			    position: relative;
			    top: 110px;
			}
			
			#dadoslogin {
				background: none repeat scroll 0 0 #FFFFFF;
			    padding-left: 450px;
			    position: relative;
			    top: 120px;
			    width: 25%;
			}
			
			#bottom {
				background: none repeat scroll 0 0 #9AC995;
			    height: 32px;
			    position: relative;
			    top: 130px;
			}
			
			#logo {
				position: relative;
			    top: 100px;
			    left: 100px;
			}
		</style>
	</head>
	<body>
		<form action="auth/signIn">
			<input type="hidden" name="targetUri" value="${targetUri}" />
			
			<div id="logo" >
				<img src="${resource(dir: 'images', file: 'broker_logo.png')}" alt="Broker"/>
			</div>
			
			<div id="top">
			</div>
			<div id="dadoslogin">
				${message(code: 'default.string.login') }
				<br />
				<br />
				<table>
					<tbody>
						<tr>
							<td>
								<label for="username">${message(code: 'default.string.username') }:</label>
							</td>
							<td>
								<input type="text" name="username" value="${username}" style="width:160px;"/>
							</td>
						</tr>
						<tr>
							<td>
								<label for="password">${message(code: 'default.string.password') }:</label>
							</td>
							<td>
								<input type="password" name="password" value="" style="width:160px;"/>
							</td>
						</tr>
						<tr>
							<td>
								<label for="password">${message(code: 'default.string.remember') }</label>
							</td>
							<td>
								<g:checkBox name="rememberMe" value="${rememberMe}" />
							</td>
						</tr>
					</tbody>
					<tfoot>
						<tr>
							<td></td>
							<td><input type="submit" value="${message(code: 'auth.entrar', default: 'Entrar')}" style="float: right;"/></td>
						</tr>
					</tfoot>
				</table>
			</div>
			<div id="bottom">
			</div>
		</form>
	</body>
</html>
</shiro:isNotLoggedIn>